 <aside>
    <div class="avatar"><a href="javascript:;"><span>关于王可</span></a></div>
    <div class="topspaceinfo">
      <h1>执子之手，与子偕老</h1>
      <p>于千万人之中，我遇见了我所遇见的人....</p>
    </div>
    <div class="about_c">
      <p>网名：人生有梦行在当下</p>
      <p>职业：PHP </p>
      <p>籍贯：河南省—濮阳市</p>
      <p>电话：18317497258</p>
      <p>邮箱：1113288194@qq.com</p>
    </div>
    <div class="tj_news">
      <h2>
        <p class="tj_t1">分类列表</p>
      </h2>
       <?php
 			//实例化分类
 			$cateModel = new \Common\Model\Cate;
			$cateData = $cateModel->get();
			//实例化文章模型
			$arcModel = new \Common\Model\Arc;
			foreach ($cateData as $k => $v) {
				$cateData[$k]['total'] = $arcModel->where("category_cid={$v['cid']} AND is_recycle=0")->count();
			}
 		?>
      <ul>
      	<?php foreach ($cateData as $v){?>
      	<?php if($v['total']){?>
                
       		 <li><a href="<?php echo U('List/index',array('cid'=>$v['cid']))?>"><?php echo $v['cname']?>(<?php echo $v['total']?>)</a></li>
        <?php }else{?>
        	 <li><a href="javascript:;"><?php echo $v['cname']?></a></li>
        
               <?php }?>
        <?php }?>
      </ul>
      <h2>
        <p class="tj_t2">标签云</p>
      </h2>
      <?php
      	//标签云
      	$tagModel = new \Common\Model\Tag;	
      	$tagData = $tagModel->get();
      ?>
      <ul>
		<?php foreach ($tagData as $v){?>
        <li><a href="<?php echo U('List/index',array('tid'=>$v['tid']))?>"><?php echo $v['tname']?></a></li>
		<?php }?>
      </ul>
    </div>
    <div class="links">
      <h2>
        <p>友情链接</p>
      </h2>
      <?php
      	//友情链接
      	$linkModel = new \Common\Model\Link;
		$linkData = $linkModel->get();	
      ?>
      <ul>
      	<?php foreach ($linkData as $v){?>
        <li><a href="<?php echo $v['url']?>"><?php echo $v['lname']?></a></li>
        <?php }?>
      </ul>
    </div>
    
  </aside>